<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */

class Div{
	
	public static function startTag($class = null, $id = null, $style = null) {
		$id = (empty($id)) ? '' : ' id="'.$id.'" ';
		$class = (empty($class)) ? '' : ' class="'.$class.'" ';
		$style = (empty($style)) ? '' : ' style="'.$style.'" ';
		
		echo "<div".$id.$class.$style.">";
	}
	
	public static function endTag() {
		echo "\n</div>";
	}
	
}

?>